<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<script type="text/javascript">
</script>

<div class="easyui-panel" title="${actDesc}:">
	<div style="padding:10px 0 10px 60px">
	<div id="errMsgDiv" class="ui-state-error ui-corner-all" style="width:95%;display:none"></div>
    <form id="ff" action="<c:url value='/transaction/IRSM0002/done' />" validateUrl="<c:url value='/transaction/IRSM0002/validAndUpd/${act}' />" method='post'>
    	<table>
    		<tr>
    			<td>Transaction:</td>
    			<td>
    				<c:choose>
					<c:when test="${act == 'add'}">
						<input name="tranId" id="tranId" class="easyui-validatebox" required="true"/>
					</c:when>
					<c:otherwise>
						${tranBean.tranId}<input type="hidden" name="tranId" id="tranId" value="${tranBean.tranId}">
					</c:otherwise>
					</c:choose>
    				
    			</td>
    		</tr>
    		<tr><td colspan="2">&nbsp;</td></tr>
    		<tr>
    			<td>System Code:</td>
    			<td>
    				<input name="systemName" id="systemName" class="easyui-combobox" required="true" 
					data-options="
						valueField:'sysId',
						textField:'sysId',
						url:'${rootPath }/transaction/IRSM0002/getIrdSysList',
						onLoadSuccess: function (data) {
							if('${tranBean.systemName}' != ''){
								$(this).combobox('setValue','${tranBean.systemName}');
							}
            			}
					"/>
    			</td>
    		</tr>
    		<tr><td colspan="2">&nbsp;</td></tr>
    		<tr>
    			<td>Tranaction Desciption:</td>
    			<td><input class="easyui-validatebox" name="tranDesc" id="tranDesc" style="width: 350px"  value="${tranBean.tranDesc}"></td>
    		</tr>
    		<tr><td colspan="2">&nbsp;</td></tr>
    		<tr>
    			<td>System Menu:</td>
    			<td>
					<input name="menuId" id="menuId" class="easyui-combobox" required="true" 
					data-options="
						valueField:'menuId',
						textField:'menuId',
						url:'${rootPath }/transaction/IRSM0001/getMenuList',
						onLoadSuccess: function (data) {
							if('${tranBean.menuId}' != ''){
								$(this).combobox('setValue','${tranBean.menuId}');
							}
            			}
					"/>
				</td>
    		</tr>
    		<tr><td colspan="2">&nbsp;</td></tr>
    		<tr>
    			<td>Enquiry Indicator:</td>
    			<td>
    				<input type="radio" name="enquiryInd" id="enquiryIndYes" value="Y" ${tranBean.enquiryInd == 'Y' || tranBean.enquiryInd == ''?'checked':'' }>Yes
					<input type="radio" name="enquiryInd" id="enquiryIndNo" value="N" ${tranBean.enquiryInd == 'N'?'checked':'' }>No
    			</td>
    		</tr>
    		<tr><td colspan="2">&nbsp;</td></tr>
    		<tr>
    			<td>Transaction Suppression:</td>
    			<td>
    				<input type="radio" name="tranSuppInd" id="tranSuppIndYes" value="1" ${tranBean.tranSuppInd == '1' || tranBean.tranSuppInd == ''?'checked':'' }>Yes
					<input type="radio" name="tranSuppInd" id="tranSuppIndNo" value="0" ${tranBean.tranSuppInd == '0'?'checked':'' }>No
    			</td>
    		</tr>
    		<tr><td colspan="2">&nbsp;</td></tr>
    		<tr>
    			<td colspan="2">Hot Key Redirect Mapping:</td>
    		</tr>
    		<tr>
    			<td colspan="2">
    				<table>
    					<tr>
    						<td>Key</td>
    						<td>F2</td>
    						<td>F4</td>
    						<td>F5</td>
    						<td>F6</td>
    						<td>F7</td>
    						<td>F9</td>
    					</tr>
    					<tr>
    						<td>Tran ID</td>
    						<td>
    							<input name='pf2' id='pf2' class='easyui-combobox'
								data-options='
									valueField:"tranId",
									textField:"tranId",
									data: ${tranKeyValuList},
									onLoadSuccess: function (data) {
										if("${tranBean.pf2}" != ""){
											$(this).combobox("setValue","${tranBean.pf2}");
										}
			            			}
								'/>
    						</td>
    						<td>
    							<input name='pf4' id='pf4' class='easyui-combobox'
								data-options='
									valueField:"tranId",
									textField:"tranId",
									data: ${tranKeyValuList},
									onLoadSuccess: function (data) {
										if("${tranBean.pf4}" != ""){
											$(this).combobox("setValue","${tranBean.pf4}");
										}
			            			}
								'/>
    						</td>
    						<td>
    							<input name='pf5' id='pf5' class='easyui-combobox'
								data-options='
									valueField:"tranId",
									textField:"tranId",
									data: ${tranKeyValuList},
									onLoadSuccess: function (data) {
										if("${tranBean.pf5}" != ""){
											$(this).combobox("setValue","${tranBean.pf5}");
										}
			            			}
								'/>
    						</td>
    						<td>
    							<input name='pf6' id='pf6' class='easyui-combobox'
								data-options='
									valueField:"tranId",
									textField:"tranId",
									data: ${tranKeyValuList},
									onLoadSuccess: function (data) {
										if("${tranBean.pf6}" != ""){
											$(this).combobox("setValue","${tranBean.pf6}");
										}
			            			}
								'/>
    						</td>
    						<td>
    							<input name='pf7' id='pf7' class='easyui-combobox'
								data-options='
									valueField:"tranId",
									textField:"tranId",
									data: ${tranKeyValuList},
									onLoadSuccess: function (data) {
										if("${tranBean.pf7}" != ""){
											$(this).combobox("setValue","${tranBean.pf7}");
										}
			            			}
								'/>
    						</td>
    						<td>
    							<input name='pf9' id='pf9' class='easyui-combobox'
								data-options='
									valueField:"tranId",
									textField:"tranId",
									data: ${tranKeyValuList},
									onLoadSuccess: function (data) {
										if("${tranBean.pf9}" != ""){
											$(this).combobox("setValue","${tranBean.pf9}");
										}
			            			}
								'/>
    						</td>
    				</table>
    			</td>
    		</tr>
			<tr>
				<td colspan="2" hight="50">&nbsp;</td>
			</tr>
			<tr>
				<td colspan="2">
					${bodyBtns }
				</td>
			</tr>
		</table>
    </form>
    </div>
</div>
